<!-- saved from url=(0014)about:internet -->
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<!--  BEGIN Browser History required section -->
		<link rel="stylesheet" type="text/css" href="history/history.css" />
		<!--  END Browser History required section -->

		<title></title>
		<script src="../swfobject.js" language="javascript"></script>
		<script src="jquery-1.3.2.min.js" language="javascript"></script>
		<style>
body {
	margin: 0px;
	overflow: hidden
}
</style>
	
	</head>

	<body>

		<div id="future"></div>
		<script type="text/javascript">
		
	</script>
	</body>
</html>
<script language="JavaScript">
swfobject.embedSWF("future.swf", "future", "1000", "400", "9.0.0", "expressInstall.swf",{startTime:'15:30',endTime:'15:15',restHour:-1,minuteShow:false,hourOffset:-8,interval:3,precision:3});
     var jsReady = false;
     var future;
     function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return document[movieName];
         } else {
             return document[movieName];
         }
     }
     function isReady() {
         return jsReady;
     }

     function pageInit() {
         jsReady = true;
         future = thisMovie("future");
     }
     window.onload=pageInit;

     function requestLine(lineType,lastTimestamp){
    	 $.ajax({
    		 type:"get",
    		 url:"../b1ym_kline.php?timestamp="+lastTimestamp+"&linetype="+lineType,
    		 dataType:'json',
    		 cache:false,
    		 success:function(data){
    			 if(data){
    				 future.responseLine(data,lineType);
    			 }else{
    				 future.responseLine(null,lineType);
    			 }
    		 },
    		 error:function(XMLHttpRequest, textStatus, errorThrown){
    			 future.responseLine(null,lineType);
    		 }
    	 });
     }
     
     function requestIns(lastTimestamp){
    	 $.ajax({
    		 type:"get",
    		 url:"../b1ym_chart_callback.php?timestamp="+lastTimestamp+"&jsoncallback=?",
    		 dataType:'json',
    		 cache:false,
    		 success:function(data){
    			 if(data){
    				 future.responseIns(data);
    			 }else{
    				 future.responseIns(null);
    			 }
    		 },
    		 error:function(XMLHttpRequest, textStatus, errorThrown){
    			 future.responseIns(null);
    		 }
    	 });
     }
     
     function requestInsInfo(){ 
    	 $.ajax({
    		 type:"get",
    		 url:"../b1ym_info.php",
    		 dataType:'json',
    		 cache:false,
    		 success:function(data){
    			 if(data){
    				 future.responseInsInfo(data);
    			 }else{
    				 future.responseInsInfo(null);
    			 }
    		 },
    		 error:function(XMLHttpRequest, textStatus, errorThrown){
    			 future.responseInsInfo(null);
    		 }
    	 });
     }
 </script>
